Skip to content

Conversation

@GithiomiAnn
Copy link
Contributor

@GithiomiAnn GithiomiAnn commented Sep 20, 2025

Student Name: Ann Mugure Githiomi
Task Description: Secure Account Deletion
This PR relates to securing the account delete feature where users are given three options to securely delete their accounts. Upon selection of each option, they receive an email notification.

These options include;

Temporarily delete the account.
Delete the account immediately.
Deactivate the account and the account becomes automatically deleted after 30 days.

For security and validation, before selecting any option, the user must input their password. A clear error message appears when a password is invalid or empty. Furthermore, email notifications and Django messages are used to record every activity. In this task, I handled the choice a user selects and password verification using Django forms and views. I also utilized UserDeletionRequest model to store scheduled deletions and audit information. A management command was also introduced to automate deletion. The emails that notify users about actions was completed by utilizing Django's send_mail function.
Screenshot 2025-09-14 093029
Screenshot 2025-09-14 095603
OPTION 1
OPTION 2
OPTION 3

@GithiomiAnn
Copy link
Contributor Author

Closed previous PR and opened a new one. All conflicts checked and migration files deleted.

Copy link
Collaborator

@drkae456 drkae456 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well Done

@drkae456 drkae456 merged commit 001baa5 into Hardhat-Enterprises:main Sep 22, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants